﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UPMS.Core.Domain
{
    public class Group : DomainBase
    {
        [Required, Display(Name = "Role Group"), MaxLength(64), MinLength(2)]
        public virtual string Name { get; set; }

        [Required, Display(Name = "Application")]
        public virtual Guid ApplicationId { get; set; }
        public virtual Application Application { get; set; }

        public virtual IList<Role> Roles { get; set; }
    }
}
